package com.hdj.chapter1.demo2;

/**
 * 〈一句话功能简述〉<br>
 *
 * @author hedajiang
 * @create 2017/12/12
 * @since 1.0.0
 */
public class FactoryTest {

    public static void main(String[] args) {
        SendFactory sendFactory = new SendFactory();
        //使用mail发送消息 避免了null处理
        Sender sender = sendFactory.produceMailSender();
        sender.send();
    }

}